<?php
require_once $rootPath.'Gazzetta.DAL/Repositories/BaseRepository.php';
require_once $rootPath.'Gazzetta.Entities/RSSCategory.php';
 
class RSSCategoryRepository extends BaseRepository 
{
	function __construct() 
	{
		 $this->tableName = 'rsscategory';
	}
	protected function formatOne($row)
	{
		$rsssource = new RSSCategory();
		
		foreach ($row as $field => $value)
		{
			if($field == 'Id')			
				$rsssource->setId($value);
			
			else if($field == 'Name')			
				$rsssource->setName($value);
			
		}
		 
		return $rsssource;
	}
	function __destruct() 
	{
		
	}
}

?>